home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 2 / Atari Mega Archive CD - Volume 2.iso / minix / up1510b.tgz / up1510b / include / string.h < prev    next >
C/C++ Source or Header  |  1990-07-23  |  2KB  |  56 lines

  1. /* The <string.h> header contains prototypes for the string handling 
  2.  * functions.
  3.  */
  4.  
  5. #ifndef _STRING_H
  6. #define _STRING_H
  7.  
  8. #define NULL    ((void *)0)
  9.  
  10. #ifndef _SIZE_T
  11. #define _SIZE_T
  12. typedef unsigned int size_t;    /* type returned by sizeof */
  13. #endif
  14.  
  15. /* Function Prototypes. */
  16. #ifndef _ANSI_H
  17. #include <ansi.h>
  18. #endif
  19.  
  20. _PROTOTYPE( void *memcpy, (void *_s1, const void *_s2, size_t _n)    );
  21. _PROTOTYPE( void *memmove, (void *_s1, const void *_s2, size_t _n)    );
  22. _PROTOTYPE( char *strcpy, (char *_s1, const char *_s2)            );
  23. _PROTOTYPE( char *strncpy, (char *_s1, const char *_s2, size_t _n)    );
  24. _PROTOTYPE( char *strcat, (char *_s1, const char *_s2)            );
  25. _PROTOTYPE( char *strncat, (char *_s1, const char *_s2, size_t _n)    );
  26. _PROTOTYPE( int memcmp, (const void *_s1, const void *_s2, size_t _n)    );
  27. _PROTOTYPE( int strcmp, (const char *_s1, const char *_s2)        );
  28. _PROTOTYPE( int strcoll, (const char *_s1, const char *_s2)        );
  29. _PROTOTYPE( int strncmp, (const char *_s1, const char *_s2, size_t _n)    );
  30. _PROTOTYPE( size_t strxfrm, (char *_s1, const char *_s2, size_t _n)    );
  31. _PROTOTYPE( void *memchr, (const void *_s, int _c, size_t _n)        );
  32. _PROTOTYPE( char *strchr, (const char *_s, int _c)            );
  33. _PROTOTYPE( size_t strcspn, (const char *_s1, const char *_s2)        );
  34. _PROTOTYPE( char *strpbrk, (const char *_s1, const char *_s2)        );
  35. _PROTOTYPE( char *strrchr, (const char *_s, int _c)            );
  36. _PROTOTYPE( size_t strspn, (const char *_s1, const char *_s2)        );
  37. _PROTOTYPE( char *strstr, (const char *_s1, const char *_s2)        );
  38. _PROTOTYPE( char *strtok, (char *_s1, const char *_s2)            );
  39. _PROTOTYPE( void *memset, (void *_s, int _c, size_t _n)            );
  40. _PROTOTYPE( char *strerror, ( int _errnum)                );
  41. _PROTOTYPE( size_t strlen, (const char *_s)                );
  42.  
  43. #ifdef _MINIX
  44. /* For backward compatibility. */
  45. _PROTOTYPE( char *index, (const char *_s, int _charwanted)        );
  46. _PROTOTYPE( char *rindex, (const char *_s, int _charwanted)        );
  47. _PROTOTYPE( void bcopy, (const char *_src, char *_dst, int _length)    );
  48. _PROTOTYPE( int bcmp, (const char *_s1, const char *_s2, int _length)    );
  49. _PROTOTYPE( void bzero, (char *_dst, int _length)            );
  50. _PROTOTYPE( void *memccpy, (char *_dst, const char *_src, int _ucharstop,
  51.                             size_t _size)    );
  52.  
  53. #endif
  54.  
  55. #endif /* _STRING_H */
  56.